-
Notifications
You must be signed in to change notification settings - Fork 309
[v7] Update BTPostalAddress
Parameters
#1680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v7
Are you sure you want to change the base?
Conversation
* Update `BTPayPalLineItem` to make all properties accessible on the initializer only vs via the dot syntax. | ||
* BraintreeVenmo | ||
* Update `BTVenmoLineItem` to make all properties accessible on the initializer only vs via the dot syntax. | ||
* BraintreeCore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: do we care about alphabetical order here?
BraintreeCore
before BraintreePayPal
?
let countryCodeAlpha2 = self["country"].asString() ?? self["countryCode"].asString() | ||
|
||
return BTPostalAddress( | ||
recipientName: recipientName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a blocker, very much a take it or leave it. For these instead of making them all stored properties we could also just this inline:
recipientName: recipientName, | |
recipientName: self["recipientName"].asString() ?? self["fullName"].asString(), |
Summary of changes
BTPostalAddress
ParametersChecklist
Authors